import './selectData'
import './limitedData'
import './goodArticlesData'
import './order'
import './detail'
var Mock = require('mockjs')

Mock.mock('/mock/api/home/list', 'get', () => {
  const data = Mock.mock({
    'list|3': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|5555-8888': 0,
        'price|50-100': 0,
      },
    ],
    'list1|7': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|0-100': 0,
        'price|50-100': 0,
      },
    ],
    'list2|7': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|5555-8888': 0,
        'price|50-100': 0,
      },
    ],
    'list3|4': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|5555-8888': 0,
        'price|50-100': 0,
      },
    ],
    'list4|2': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|5555-8888': 0,
        'price|50-100': 0,
      },
    ],
    'list5|3': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|0-10': 0,
        'price|50-1000': 0,
      },
    ],
    'list6|19': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(30,50)',
        'num|0-10': 0,
        'price|50-1000': 0,
        'text|0-10': 0,
      },
    ],
    total: 79,
    nextIndex: 20,
    image1:
      'http://mms0.baidu.com/it/u=1324282023,3543746267&fm=253&app=138&f=PNG&fmt=auto&q=75?w=500&h=300',
    image2:
      'http://mms1.baidu.com/it/u=1122907202,3366084260&fm=253&app=138&f=JPG&fmt=auto&q=75?w=370&h=218',
    image3:
      'http://mms0.baidu.com/it/u=2874585578,855591574&fm=253&app=138&f=PNG&fmt=auto&q=75?w=500&h=269',
    image4:
      'http://mms0.baidu.com/it/u=2044013397,1058430763&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=369&h=232',
    image5:
      'http://mms0.baidu.com/it/u=2165701072,128355709&fm=253&app=138&f=PNG&fmt=auto&q=75?w=500&h=400',

    'list7|10': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        title: '@ctitle(20,50)',
        'num|5555-8888': 0,
        'price|50-100': 0,
      },
    ],
    total: 79,
    nextIndex: 20,
    image1:
      'http://mms0.baidu.com/it/u=1324282023,3543746267&fm=253&app=138&f=PNG&fmt=auto&q=75?w=500&h=300',
    image2:
      'http://mms1.baidu.com/it/u=1122907202,3366084260&fm=253&app=138&f=JPG&fmt=auto&q=75?w=370&h=218',
    image3:
      'http://mms0.baidu.com/it/u=2874585578,855591574&fm=253&app=138&f=PNG&fmt=auto&q=75?w=500&h=269',
    image4:
      'http://mms0.baidu.com/it/u=2044013397,1058430763&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=369&h=232',
    image5:
      'http://mms0.baidu.com/it/u=2165701072,128355709&fm=253&app=138&f=PNG&fmt=auto&q=75?w=500&h=400',

    isEnd: false,
  })

  return {
    code: 200,
    data,
  }
})
